﻿




using System.Web.Mvc;
using Hotpot.Modules.Search.Models;

namespace Hotpot.Modules.Search.ModelBinders
{
    public class SearchCriteriaModelBinder : IModelBinder
    {
        public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
        {
            return new SearchCriteria(controllerContext.HttpContext.Request.QueryString["term"]);
        }
    }
}
